﻿using MS.Core.JsonConverters;
using SqlSugar;
using Newtonsoft.Json;
using Microsoft.AspNetCore.Mvc.Formatters;

namespace ReportDesignerServer.DataModel
{
    /// <summary>
    /// 打印报表数据
    /// </summary>
    /// 
    [SugarTable("sys_print_data")]
    public class SysPrintData
    {
        [JsonConverter(typeof(LongToStringConverter))]
        [SugarColumn(IsPrimaryKey = true)]
        public long id { get; set; }

        [SugarColumn(IsNullable = true)]
        public string? printTempName { get; set; }

        [SugarColumn(IsNullable = true)]
        public string? dataSourceKey { get; set; }

        [SugarColumn(IsNullable = true)]
        public string? dataSourceName { get; set; }

        [SugarColumn(IsNullable = true)]
        public string? dataSql { get; set; }

        [SugarColumn(IsNullable = true)]
        public int? single { get; set; }

        public string? props { get; set; }

        [SugarColumn(IsNullable = true)]
        public int? sort { get; set; }

       
    }
}
